package com.iwhalecloud.citybrain.flow.platform.manager.application.service;

import com.iwhalecloud.citybrain.flow.platform.manager.domain.exception.EventCallSuspendException;
import org.flowable.engine.common.api.delegate.event.FlowableEvent;
import org.flowable.engine.common.api.delegate.event.FlowableEventType;

/**
 * Handler - 事件处理器
 *
 * @author lilh
 * @date 2019-01-28 15:57
 */
public interface CustomEventHandler {

    /**
     * 获取事件类型
     *
     * @return 事件类型
     */
    FlowableEventType getEventType();

    /**
     * 处理事件
     *
     * @param event 事件
     */
    void handle(FlowableEvent event) throws Exception;
}
